body{
    .admin-sidebar {
        width: 250px;
        background: #001529;
        color: #fff;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
    }
    
    .admin-sidebar .admin-header {
        padding: 20px;
    }
    .logo-container {
        text-align: center;
    }
    
    .logo {
        width: 120px;
        height: auto;
    }
    
    /* 菜单样式 */
    .admin-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .admin-menu li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #fff;
    }
    
    .admin-menu li i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    .badge {
        background: #ff4d4f;
        color: #fff;
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 12px;
        margin-left: auto;
    }
    .admin-menu {
        list-style: none;
    }
    .admin-menu a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        color:#fff;
        text-decoration: none;
    }
    
    .admin-menu a i {
        margin-right: 14px;
        font-size: 16px;
        width: 16px;
        text-align: center;
    }
    
    .admin-menu li.active a {
        color: #fff;
        background: #1890ff;
    }
    
    .admin-menu a:hover {
        color: #fff;
        background: rgba(24,144,255,0.1);
    }
    
    .badge {
        background: #ff4d4f;
        color: #fff;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 12px;
        margin-left: auto;
    }


    .admin-main {
        margin-left: 250px;
        padding: 24px;
        min-height: 100vh;
    }
    
    /* 顶部导航 */
    .admin-search {
        position: relative;
        width: 100%;
        display: flex;
        margin-bottom: 24px;
    }
    .Search{
        width: 10%;
        padding: 10px 4px;
        background-color: #fff;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        cursor: pointer;
        margin-left: 15px;
    }
    
    .admin-search input {
        width: 50%;
        padding: 8px 16px;
        padding-right: 40px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
    }
    
    /* 数据概览卡片 */
    .data-overview {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-bottom: 24px;
    }
    
    .data-card {
        background: #fff;
        padding: 24px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        background: #e6f7ff;
        color: #1890ff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
    }
    
    .card-icon.warning {
        background: #fff7e6;
        color: #fa8c16;
    }
    
    .card-icon.success {
        background: #f6ffed;
        color: #52c41a;
    }
    
    .card-info h3 {
        color: #666;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .card-info p {
        color: #333;
        font-size: 24px;
        font-weight: 500;
        margin: 0;
    }
    
    /* 筛选工具栏 */
    .filter-section {
        background: #fff;
        padding: 20px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 24px;
        margin-top: 24px;
    }
    
    .filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .filter-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .filter-item select,
    .filter-item input {
        padding: 8px 12px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        min-width: 120px;
    }
    
    .price-input {
        width: 100px;
    }
    
    .action-group {
        display: flex;
        gap: 16px;
        justify-content: flex-end;
    }
    
    /* 商品表格 */
    .product-table {
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: auto;
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
    }
    
    th, td {
        padding: 16px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    th {
        background: #fafafa;
        font-weight: 500;
    }
    
    .product-info {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 150px;
    }
    
    .product-info img {
        width: 90px;
        height: 120px;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .product-detail h4 {
        margin: 0 0 4px;
        font-size: 14px;
    }
    
    .product-detail p {
        margin: 0;
        color: #666;
        font-size: 12px;
    }
    
    /* 状态标签 */
    .status-tag {
        padding: 4px 8px;
        border-radius: 2px;
        font-size: 12px;
    }
    
    .status-active {
        background: #f6ffed;
        color: #52c41a;
        border: 1px solid #b7eb8f;
    }
    
    /* 按钮样式 */
    .btn {
        padding: 8px 16px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .btn-primary {
        background: #1890ff;
        color: #fff;
        margin-left: 100px;
    }
    
    .btn-export {
        background: #fff;
        border: 1px solid #d9d9d9;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        cursor: pointer;
        color: #666;
    }
    
    .btn-icon:hover {
        color: #1890ff;
    }
    
    /* 分页 */
    .pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
    }
    
    .page-controls {
        display: flex;
        gap: 8px;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        border: 1px solid #d9d9d9;
        background: #fff;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .page-btn.active {
        background: #1890ff;
        color: #fff;
        border-color: #1890ff;
    }
    
    /* 响应式设计 */
    @media screen and (max-width: 1200px) {
        .data-overview {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media screen and (max-width: 768px) {
        .data-overview {
            grid-template-columns: 1fr;
        }
        
        .filter-group {
            flex-direction: column;
        }
        
        .action-group {
            flex-direction: column;
            width: 100%;
        }
        
        .btn {
            width: 100%;
        }
    }
    .btn-action {
        padding: 4px 8px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin-right: 8px;
        transition: all 0.3s;
    }
    
    .btn-action.edit {
        background: #e6f7ff;
        color: #1890ff;
    }
    
    .btn-action.edit:hover {
        background: #bae7ff;
    }
    
    .btn-action.view {
        background: #f6ffed;
        color: #52c41a;
    }
    
    .btn-action.view:hover {
        background: #d9f7be;
    }
    
    .btn-action.delete {
        background: #fff1f0;
        color: #ff4d4f;
    }
    
    .btn-action.delete:hover {
        background: #ffa39e;
    }
    .modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

/* 模态框内容样式 */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 模态框头部样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
}

/* 关闭按钮样式 */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* 表单网格样式 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* 表单组样式 */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* 必选标记样式 */
.required {
    color: red;
}

/* 全宽表单组样式 */
.full-width {
    grid-column: 1 / -1;
}

/* 图片上传区域样式 */
.image-upload {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.image-upload i {
    font-size: 24px;
    color: #999;
    margin-bottom: 10px;
}

.image-upload p {
    margin: 0;
    color: #666;
}

/* 模态框底部样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

/* 取消按钮样式 */
.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
}

/* 保存按钮样式 */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}/* 模态框整体样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 表单样式 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.required {
    color: red;
}

.full-width {
    grid-column: 1 / -1;
}

/* 模态框底部按钮样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-secondary {
    background-color: #ccc;
    margin-right: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

/* 图片上传区域样式 */
.image-upload {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.image-upload i {
    font-size: 24px;
    margin-bottom: 10px;
}

.image-upload p {
    margin: 0;
}
}